<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <script>
      var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
        CSS.supports('top: constant(a)'))
      document.write(
        '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
        (coverSupport ? ', viewport-fit=cover' : '') + '" />')
    </script>
    <title>AI智能童伴学习机</title>
    <!--preload-links-->
    <!--app-context-->
    <!-- 同步引入微信JS-SDK，确保在页面初始化前加载完成 -->
    <script>
      // 同步加载微信JS-SDK
      (function() {
        if (typeof window.wx === 'undefined') {
          var script = document.createElement('script');
          script.src = 'https://res.wx.qq.com/open/js/jweixin-1.6.0.js';
          script.async = false; // 同步加载
          document.head.appendChild(script);
          
          // 等待JS-SDK加载完成
          var checkWx = function() {
            if (typeof window.wx !== 'undefined' && window.wx && typeof window.wx.config === 'function') {
              console.log('微信JS-SDK同步加载完成');
            } else {
              setTimeout(checkWx, 100);
            }
          };
          checkWx();
        }
      })();
    </script>
  </head>
  <body>
    <div id="app"><!--app-html--></div>
    <script type="module" src="/main.js"></script>
  </body>
</html>
